package com.fernfx.xingtan.main.model;

import com.fernfx.xingtan.Constant;
import com.fernfx.xingtan.ConsumerApplication;
import com.fernfx.xingtan.common.network.IRequestCallback;
import com.fernfx.xingtan.common.network.SJJNetworkProxy;
import com.fernfx.xingtan.main.contract.RobredPacketHistroyContract;
import com.fernfx.xingtan.utils.OtherUtil;

import java.util.Map;

/**
 * Created by admin on 2018/8/10.
 */

public class RobredPacketHistoryModel implements RobredPacketHistroyContract.Model{
    @Override
    public void sendRobredPacketHistroy(String url,Map<String, Object> requestArgsMap, IRequestCallback iRequestCallback) {
        String requestUrl = OtherUtil.getGetUrl(ConsumerApplication.ENVIRONMENT_URL + url,requestArgsMap);
        SJJNetworkProxy.getInstance().get(requestUrl,null,iRequestCallback);
    }
}
